package com.ws.drawingsoftware.entity;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * @author 王硕
 * @version jdk21
 * @className Circle
 * @description
 * @date 2024/11/11 17:25
 */
@Setter
@Getter
public class Circle extends Shape{
    //半径
    private int radius;
    @Override
    public void draw() {
        System.out.println("园形的X坐标:"+super.getX());
        System.out.println("园形的y坐标:"+super.getX());
        System.out.println("园形的图案颜色:"+super.getColor());
        System.out.println("园形的半径:"+this.getRadius());
        System.out.println("矩形的面积:"+(this.getRadius()*Math.PI));
    }
}
